package com.tanhua.sso.pojo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class User extends BasePojo {

    @TableId
    private Long id;
    private String mobile; //手机号
    @TableField(fill = FieldFill.INSERT) //MP自动填充
    private Date created;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updated;
    @JsonIgnore
    private String password; //密码，json序列化时忽略
    @TableField(value = "freezingTime")
    private Integer freezingTime;  //冻结时间，1为冻结3天，2为冻结7天，3为永久冻结
    @TableField(value = "freezingRange")
    private Integer freezingRange;  //冻结范围，1为冻结登录，2为冻结发言，3为冻结发布动态, 0为不冻结
    @TableField(value = "reasonsForFreezing")
    private String reasonsForFreezing; //冻结原因
    @TableField(value = "frozenRemarks")
    private String  frozenRemarks;
    @TableField(value = "reasonsForThawing")
    private String  reasonsForThawing; //解冻原因*/

}
